import { query, post, remove } from "./request";
//查看收入流水
export function getIncomeList(data) {
    return query("/shop/incomeList", data);
}
//商家查看自己的钱包
export function getWalletInfo() {
    return query("/shop/walletInfo");
}
// 商家查看自己的提现记录
export function getPickuped() {
    return query("/shop/pickupedList");
}
//核销订单
export function getVerification(data) {
    return post("/shoporder/verification", data);
}

//商家详情
export function getShopOrderDetail(data) {
    return query("/shoporder/orderDetailForShoper", data);
}
//同意退款
export function getAckRefund(data) {
    return post("/shoporder/ackRefund", data);
}
//商家查看订单列表
export function getBusinessOrder(data) {
    return query("/shoporder/orderListForShoper", data);
}
//首页查看商家列表
export function getShop(data) {
    return query("/shop/shopList", data);
}
//商家详情
export function getShopDetail(data) {
    return query("/shop/shopDetail", data);
}
//商品详情
export function getItemDetail(data) {
    return query("/item/itemDetail", data);
}
//用户下单
export function getSettlement(data) {
    return post("/item/settlement", data);
}
//创建商品订单
export function getOrderCreate(data) {
    return post("/shoporder/create", data);
}
//我的订单列表
export function getMyOrder(data) {
    return query("/shoporder/orderList", data);
}
//订单详情
export function getMyOrderDetail(data) {
    return query("/shoporder/orderDetail", data);
}
//去评价

export function getReview(data) {
    return post("/shoporder/review", data);
}

//取消订单
export function getOrderCancel(data) {
    return query("/shoporder/cancel", data);
}
//去退款
export function getRequestRefund(data) {
    return query("/shoporder/requestRefund", data);
}
//商家助手列表
export function getAssistant(data) {
    return query("/shop/assistantList", data);
}
//搜索助手用户
export function getSearchAssistant(data) {
    return query("/user/search", data);
}
//添加助手
export function getAddAssistant(data) {
    return post("/shop/addAssistant", data);
}
//删除商家助手
export function getDelAssistant(data) {
    return post("/shop/delAssistant", data);
}
//获取手机验证码
export function getSendSms(data) {
    return query("/user/vcode", data);
}
//短信验证码登录
export function getLoginBySms(data) {
    return post("/user/loginByVcode", data);
}
//验证码注册
export function getRegisterBySms(data) {
    return post("/user/registerByVcode", data);
}
